﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NOAH.CMS.Repository;

/// <summary>
/// Summary description for SubjectExtensionMethods
/// </summary>
public static class SubjectExtensionMethods
{
    public static BaseCategoryView ConvertFrom(this Subject p)
    {
        BaseCategoryView baseCategory = new BaseCategoryView();

        baseCategory.ID = p.ID;
        baseCategory.Name = p.Name;
        baseCategory.Link = p.SEOLink;
        baseCategory.ParentID = 1;
        baseCategory.Target = "_self";

        return baseCategory;

    }
}